import request from '@/utils/request'
import { transFormValue } from '@/utils/tools'

//角色列表
export function roleGetList(data) {
  return request({
    url: '/role/getList' + transFormValue(data),
    method: 'post'
  })
}

//创建角色
export function roleCreate(data) {
    return request({
      url: '/role/create' + transFormValue(data),
      method: 'post'
    })
}

//更新角色
export function roleUpdate(data) {
    return request({
      url: '/role/update' + transFormValue(data),
      method: 'post'
    })
}

//删除角色
export function roleDelete(data) {
    return request({
      url: '/role/delete' + transFormValue(data),
      method: 'post'
    })
}
